
package br.com.senai.entities;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

/**
 *
 * @author Hugo
 */
@Entity
public class Aluno implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    private Long registroAluno;

    @ManyToOne
    private Turma turma;


    public Turma getTurma() {
        return turma;
    }

    public void setTurma(Turma turma) {
        this.turma = turma;
    }

    public Long getRegistroAluno() {
        return registroAluno;
    }

    public void setRegistroAluno(Long registroAluno) {
        this.registroAluno = registroAluno;
    }

    @Override
    public String toString() {
        return Long.toString(registroAluno) ;
    }

}
